package com.laoxu.student.business.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.laoxu.student.business.entity.Department;
import com.laoxu.student.business.mapper.DepartmentMapper;
import com.laoxu.student.business.service.DepartmentService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 院系 服务实现类
 * </p>
 *
 * @author Laoxu
 * @since 2020-04-04
 */
@Service
public class DepartmentServiceImpl extends ServiceImpl<DepartmentMapper, Department> implements DepartmentService {
    @Override
    public void pageQuery(Page<Department> pageParam) {
        QueryWrapper<Department> queryWrapper = new QueryWrapper<>();
        queryWrapper.orderByDesc("create_time");


        baseMapper.selectPage(pageParam, queryWrapper);
    }
}
